/**
 * Created by guo.xiaomin on 2017-09-21.
 */
var mtOrderController = require('../controllers/mtOrder-controller');
module.exports = function (app) {
    // 定时(每天某个时间点)取得美囤订单信息
    app.get('/rest/' + RESTFullServiceVersion + '/mtOrder/mtOrderSchedule', mtOrderController.mtOrderSchedule);
    //手动获取每天美囤订单信息
    app.post('/rest/' + RESTFullServiceVersion + '/mtOrder/manualmtmtOrderSchedule', mtOrderController.manualmtOrderSchedule);
    app.post('/rest/' + RESTFullServiceVersion + '/mtOrder/manualmtmtOrderScheduleFromTo', mtOrderController.manualmtOrderScheduleFromTo);

    // 粗算
    app.post('/rest/' + RESTFullServiceVersion + '/mtOrder/manualmtmtOrderScheduleFromToRough', mtOrderController.manualmtOrderScheduleFromToRough);
    // 复核
    app.post('/rest/' + RESTFullServiceVersion + '/mtOrder/manualmtmtOrderScheduleFromToCheck', mtOrderController.manualmtOrderScheduleFromToCheck);
    // 精算
    app.post('/rest/' + RESTFullServiceVersion + '/mtOrder/manualmtmtOrderScheduleFromToActuary', mtOrderController.manualmtOrderScheduleFromToActuary);
    // 66订单退款
    app.post('/rest/' + RESTFullServiceVersion + '/mtOrder/refundStatusFor66ByStartEndDate', mtOrderController.refundStatusFor66ByStartEndDate);

    //查询小区大使信息
    app.post('/rest/' + RESTFullServiceVersion + '/mtOrder/communityAmbassadordataShow/:page/:size', mtOrderController.communityAmbassadordataShow);
    //导出小区大使信息
    app.get('/rest/' + RESTFullServiceVersion + '/mtOrder/communityAmbassadordataExport', mtOrderController.communityAmbassadordataExport);
    //小区大使在App中查看自己的业绩
    app.post('/rest/' + RESTFullServiceVersion + '/mtOrder/communityAmbassadordataShowApp', mtOrderController.communityAmbassadordataShowApp);
};